//
//  MemSelfView.m
//  shanHaiHuiApp
//
//  Created by DS on 2018/3/20.
//  Copyright © 2018年 徐双. All rights reserved.
//

#import "MemSelfView.h"

@interface MemSelfView()

Strong UILabel * dispatchLabel;

Strong UIView * lineView;

@end

@implementation MemSelfView

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
       
        _dispatchLabel = [[UILabel alloc] init];
        _dispatchLabel.text = @"配送类型：会员自提";
        _dispatchLabel.font = DEF_FontSize_14;
        _dispatchLabel.textColor = getColor(@"323232");
        
        _lineView = [[UIView alloc] init];
        _lineView.backgroundColor = getColor(dividerColor);
        
        [self addSubview:self.dispatchLabel];
        [self addSubview:self.lineView];
        
        ws(self)
        
        [self.dispatchLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(UNIT_WIDTH(15));
            make.top.mas_equalTo(UNIT_HEIGHT(15));
            make.height.mas_equalTo(UNIT_HEIGHT(30));
        }];
        
        [self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_offset(0);
            make.right.mas_offset(0);
            make.top.mas_equalTo(weakself.dispatchLabel.mas_bottom).offset(UNIT_HEIGHT(10));
            make.height.mas_equalTo(UNIT_HEIGHT(5));
        }];
        
    }
    return self;
}

@end
